﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using ERP_RORZE_DLL.Product.DAO;

namespace ERP_RORZE_PRODUCT.Product.WTS
{
    public partial class frm_LaborWTStoGA : DevExpress.XtraEditors.XtraForm
    {
        ClsWTSDAO clsWTSDAO = new ClsWTSDAO();

        DataTable dt;

        public frm_LaborWTStoGA()
        {
            InitializeComponent();
        }

        private void btnRefresh_Click(object sender, EventArgs e)
        {
            clsWTSDAO.PWTSTOGAAPPEND(dateFrom.Value, dateTo.Value);

            dt = clsWTSDAO.GetAllLaborWTStoGA(dateFrom.Value, dateTo.Value);
            gridControl1.DataSource = dt;
            gridView1.BestFitColumns();
        }
    }
}